android studio listview arrayadapter

111

android studio listview arrayadapter -

//Creating the Adapter:->

ArrayAdapter<String> itemsAdapter = 
    new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, items);

//Setting the Adapter:->
	listView.setAdapter(itemsAdapter);

Comments

Submit
0 Comments